﻿<%@ Page Language="c#" CodeBehind="AssignApp.aspx.cs" AutoEventWireup="false" Inherits="BEGDC.CC.Web.UserControls.EV.AssignApp" %>

<%@ Register TagPrefix="cc1" Namespace="BEGDC.CC.Web.Control" Assembly="ASBCC.Web" %>
<%@ OutputCache Location="None" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>AssignApp</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <base target="_self" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_fu.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/ccworkflow.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function OnAssign() {
            if (document.getElementById("ddlCODStaff").value == "" || document.getElementById("ddlCODStaff").value == null || document.getElementById("ddlCODStaff").value == "-1") {
                alert("Please choose staff first");
                event.returnValue = false;
            }
        }

        $(function() {
            $(".assign").bind("click", function() {

                window.returnValue = $("#ddlCODStaff").val();

                SimpleCloseWindow();
                return false;
            });

            $(".close").bind("click", function() {

                window.returnValue = "%close%";

                SimpleCloseWindow();
                return false;
            });
        });
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <h3 class="ev-header-section">
        &nbsp;Assign Request to Staff (委托核查)</h3>
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr class="ev-row2">
            <td class="title" style="width: 160px;">
                <asp:Label ID="lblStaff" runat="server">Choose Staff:<br />选择核查者</asp:Label>
            </td>
            <td class="val">
                <asp:DropDownList ID="ddlCODStaff" runat="server" Width="160">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2" id="txtHint" runat="server">
            </td>
        </tr>
        <tr class="ev-row2">
            <td colspan="2" class="padding5 ac">
                <asp:ResourceButton ID="btnAssign" runat="server" Text="OK" ToolTip="OKTips" CssClass="btn assign" />
                <asp:ResourceButton ID="ibtnClose" runat="server" Text="Close" ToolTip="CloseTips"
                    CssClass="btn close" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
